package com.zhilifang.modules.zlf.utils;


/**
 * 返回结果类
 * @author panda
 *
 */
public class Result {
	//状态
	private String state;
	//消息
	private String message;
	//数据
	private Object data;
 

	public Result(){
		this.state="false";
		this.message="";
		this.data=null;
	}
 
	/**
	 * 状态
	 * @return
	 */
	public String getState() {
		return state;
	}

	/**
	 * 状态
	 * @return
	 */
	public void setState(String state) {
		this.state = state;
	}

	/**
	 * 返回消息内容
	 * @return
	 */
	public String getMessage() {
		return message;
	}

	/**
	 * 返回消息内容
	 * @return
	 */
	public void setMessage(String message) {
		this.message = message;
	}
 
	/**
	 * 返回数据
	 * @return
	 */
	public Object getData() {
		return data;
	}

	/**
	 * 返回数据
	 * @return
	 */
	public void setData(Object data) {
		this.data = data;
	}
 
	@Override
	public String toString() {
		return "Result [state=" + state + ", message=" + message + ", data="
				+ data + "]";
	}
}
